//
//  SLConst.swift
//  0319iOSweiboDemo
//
//  Created by Tang on 16/3/21.
//  Copyright © 2016年 大天朝. All rights reserved.
//

import UIKit

let SLBaseURL = NSURL(string: "https://api.weibo.com/oauth2/access_token")

/**
  自定义Log

:param: file     文件路径
:param: line     行
:param: function 当前方法
:param: msg      内容
*/
func SLPrint(file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__, msg: Any...) {
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)行], \(function): \(msg)")
    #endif
}

class SLConst: NSObject {

}

//MARK: - Oauth授权
//let client_id = "1763587078"
//let client_secret = "4cb1e94b602fbc322a0e9590a57b882d"
//let redierct_url = "http://www.weibo.com"

//修改了应用
let client_id = "2553063838"
let client_secret = "489b13ee03fd1df1ed01efb321ad56c5"
let redierct_url = "http://www.baidu.com"

let grant_type = "authorization_code"

/**
*  动画执行时间是0.25
*/
let SLDefaultDuration = 0.25

///新特性界面页数
let SLNweFeatuerPageCount = 4


//MARK: - 微博cell相关
let SLStatusCellMargin: CGFloat = 8

let SLStatusCellContentSize: CGFloat = 14

//MARK: - 微博配图相关
//配图之间的间距
let SLStatusPictureManager: CGFloat = 8

//配图最大的列数
let SLStatusPictureMaxCloumn = 3

//配图cell的大小:(屏幕宽度 - 配图左右的间距 - cell之间的间距) / cell的数量
let SLStatusPictureCellWh = (UIScreen.width - 2 * SLStatusCellMargin - CGFloat(SLStatusPictureMaxCloumn - 1) * SLStatusPictureManager) / CGFloat(SLStatusPictureMaxCloumn)

///发微博界面最大长度
let SLComposeVCStatusMaxLength = 25